package cc.ycws.core.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import com.alibaba.fastjson.annotation.JSONField;

/**
  * <p>
  * 新老客户号对应记录表
  * </p>
  *
  * @author tutu
  * @since 2018-05-22
  */
@TableName("cc_customer_no_record")
public class CcCustomerNoRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 新客户号
     */
    @TableField("customer_no")
    private String customerNo;

    /**
     * 旧客户号
     */
    @TableField("old_customer_no")
    private Integer oldCustomerNo;

    /**
     * 客户类型(0=业主 1=访客)
     */
    @TableField("customer_type")
    private String customerType;

    /**
     * 建档人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String creator;

    /**
     * 建档时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time", fill = FieldFill.INSERT_UPDATE)
    private Date createTime;

    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String modifier;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "modify_time", fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    /**
     * 备注
     */
    private String remarks;

    public Integer getId() {
    return id;
    }

    public void setId(Integer id) {
    this.id = id;
    }
    public String getCustomerNo() {
    return customerNo;
    }

    public void setCustomerNo(String customerNo) {
    this.customerNo = customerNo;
    }
    public Integer getOldCustomerNo() {
    return oldCustomerNo;
    }

    public void setOldCustomerNo(Integer oldCustomerNo) {
    this.oldCustomerNo = oldCustomerNo;
    }
    public String getCustomerType() {
    return customerType;
    }

    public void setCustomerType(String customerType) {
    this.customerType = customerType;
    }
    public String getCreator() {
    return creator;
    }

    public void setCreator(String creator) {
    this.creator = creator;
    }
    public Date getCreateTime() {
    return createTime;
    }

    public void setCreateTime(Date createTime) {
    this.createTime = createTime;
    }
    public String getModifier() {
    return modifier;
    }

    public void setModifier(String modifier) {
    this.modifier = modifier;
    }
    public Date getModifyTime() {
    return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
    this.modifyTime = modifyTime;
    }
    public String getRemarks() {
    return remarks;
    }

    public void setRemarks(String remarks) {
    this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "CcCustomerNoRecord{" +
                "id=" + id +
                ", customerNo=" + customerNo +
                ", oldCustomerNo=" + oldCustomerNo +
                ", customerType=" + customerType +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", modifier=" + modifier +
                ", modifyTime=" + modifyTime +
                ", remarks=" + remarks +
        "}";
    }
}
